import AppDataSource from '../ormconfig'
import { User } from './user/user.entity'

AppDataSource.initialize()
  .then(async () => {
    const users = await AppDataSource.manager.find(User)
    console.log('Loaded users: ', users)
  })
  .catch((error) => console.log(error))
